interface Subject{
    void Request();
}
class RealSubject implements Subject{
    @Override
    public void Request() {
        System.out.println("真实的请求");
    }
}
class Proxy implements Subject{
    private final RealSubject realSubject;

    public Proxy() {
        this.realSubject = new RealSubject();
    }

    @Override
    public void Request() {
        realSubject.Request();
    }
}
public class Test {
    public static void main(String[] args) {
        Subject proxy=new Proxy();
        proxy.Request();
    }
}
